﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Controls/Video.master" AutoEventWireup="true" CodeFile="Video.Detail.aspx.cs" Inherits="Pages_Video_Detail" %>

<%@ Register Src="~/Controls/Right.Add.ascx" TagPrefix="uc1" TagName="RightAdd" %>
<%@ Register Src="~/Controls/Right.Infor.ascx" TagPrefix="uc1" TagName="RightInfor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="cottrai">
        <div class="menu_c2">
            <ul>
                <li><a href="#"><strong>VIDEO</strong></a></li>
                <li>
                    <img src="/resources/images/v6.gif"></li>
            </ul>
            <div class="clear"></div>
        </div>

        <div class="video1">
            <div id="mediaplayer"></div>
        </div>
        <!--end video1-->
        <div class="video2">
            <a href="#" runat="server" id="hlMainVideo"></a>
            <p>
                <asp:Literal runat="server" ID="ltContent"></asp:Literal>
            </p>
            <div class="clear"></div>
        </div>
        <!--end video2-->
        <div class="link2">
            <fb:like id="likeIframe" href="" width="450" height="35" colorscheme="light" layout="standard" action="like" show_faces="false" send="true"></fb:like>
        </div>

        <div class="tag"><strong>TAGS</strong><asp:Literal ID="ltrTags" runat="server"></asp:Literal></div>

        <div class="qc_baiviet">
            <img src="/resources/images/c5.jpg" />
        </div>

        <%--<div class="ykien">
            <div class="box1_ykien">
                <div class="yk_title1"><span>Y kien ban doc</span> (0 Comments)</div>
                <div class="yk_title2"><span>Gui y kien cua ban</span></div>
                <div class="gui_yk">
                    <input type="text" style="width: 292px" value="Họ tên"><input type="text" style="width: 290px" value="Email"><div class="clear"></div>
                </div>
                <div class="gui_yk">
                    <textarea name="" cols="" rows="4"></textarea><div class="clear"></div>
                </div>
                <div class="gui_yk">
                    <input name="" type="text" style="width: 100px" value="Ma xac nhan"><div class="clear"></div>
                </div>
                <div class="gui_yk">
                    <ul>
                        <li><a href="#">Gửi thông tin</a></li>
                        <li><a href="#">Nhập lại</a></li>
                    </ul>
                    <div class="clear"></div>
                </div>
            </div>
        </div>--%>
        <!-- end box1 -->

        <div class="clear"></div>

        <div class="menu_c2">
            <ul>
                <li><a href="#"><strong>MỚI NHẤT</strong></a></li>
                <li>
                    <img src="/resources/images/v6.gif"></li>
            </ul>
            <div class="clear"></div>
        </div>
        <!--end menu_c2-->

        <div class="list_video">
            <asp:Repeater runat="server" ID="rptNewVideo">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li>
						<div style="position:relative;">
                        <a href="<%# NewsUtils.VideoLink(Eval("Title").ToString(),Eval("NewsID").ToString()) %>">
                            <img src='<%# AppUtils.ImageUrl((Eval("ImageUrl").ToString() != "" ? Eval("ImageUrl").ToString() : "/2013/10/16/4273/a6629bcca_video_cover2.jpg"), "210", "129") %>' width="210" height="129" alt="<%# Eval("Title") %>" /></a>
                        <a href="<%# NewsUtils.VideoLink(Eval("Title").ToString(),Eval("NewsID").ToString()) %>" title="<%# Eval("Title") %>"><%# AppUtils.SubTitle(Eval("Title").ToString(), 60) %>...</a>
						<div style="position:absolute; bottom:45px; left:4px;"><img src="/resources/images/23x23px.png" /></div>
						</div>
					</li>						
                </ItemTemplate>
                <FooterTemplate></ul></FooterTemplate>
            </asp:Repeater>
            <div class="clear"></div>
        </div>
        <!--end list_video-->
        <div style="float: right; padding: 6px;"><a href="#" id="hlnext" runat="server">Xem tiếp >></a></div>
    </div>

    <div class="cotphai">
        <div class="ke_mau" style="margin: 4px 0 0 0;">
            <p style="width: 40%"></p>
        </div>
        <div class="box_ttt">
            <div class="title tit2">XEM NHIỀU NHẤT</div>
            <asp:Repeater runat="server" ID="rptMostView">
                <ItemTemplate>
                    <div class="dong9" style="position:relative;">
                        <a href="<%# NewsUtils.VideoLink(Eval("Title").ToString(),Eval("NewsID").ToString()) %>">
                            <img src='<%# AppUtils.ImageUrl((Eval("ImageUrl").ToString() != "" ? Eval("ImageUrl").ToString() : "/2013/10/16/4273/a6629bcca_video_cover2.jpg"), "162", "100") %>' /></a>
                        <a href="<%# NewsUtils.VideoLink(Eval("Title").ToString(),Eval("NewsID").ToString()) %>"><%# Eval("Title") %></a>
						<div style="position:absolute; bottom:15px; left:4px;"><img src="/resources/images/23x23px.png" /></div>
                        <div class="clear"></div>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </div>
        <!--end box_tuvan-->
        <uc1:RightInfor runat="server" ID="RightInfor" />
        <uc1:RightAdd runat="server" ID="RightAdd" />
    </div>
    <!--end cotphai-->

    <div class="clear"></div>
    <script type="text/javascript">
        jwplayer('mediaplayer').setup({
            modes: [
                {
                    type: 'html5',
                    config: {
                        'file': '<%=urlYoutube %>'
                    }
                },
                { type: 'flash', src: '/jwplayer/jwplayer.flash.swf' }
            ],
            'id': 'playerID',
            'width': '650',
            'height': '355',
            'file': '<%=urlYoutube %>',
            'image': '<%=urlImage %>',
            'controlbar': 'bottom'
        });
        $(document).ready(function () {
            $('#likeIframe').attr('href', document.URL);
        });
    </script>
</asp:Content>

